package com.dd.mytest.beanfactory;

import com.dd.mytest.po.User;
import org.apache.ibatis.reflection.factory.DefaultObjectFactory;
import org.apache.ibatis.reflection.factory.ObjectFactory;

import java.util.List;
import java.util.Properties;

/**
 * @author: lkd
 * @date: 2023/05/12/21:33
 * @Description:
 */
public class MyObjectFactory extends DefaultObjectFactory {
  @Override
  public <T> T create(Class<T> type) {
    return super.create(type);
  }

  @Override
  public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
    System.out.println(type+"   "+constructorArgs);
    return super.create(type, constructorArgTypes, constructorArgs);
  }

  @Override
  public <T> boolean isCollection(Class<T> type) {
    return super.isCollection(type);
  }

  @Override
  public void setProperties(Properties properties) {
    System.out.println(properties);
  }
}
